import request from "@/utils/request";

//查看商品详情接口
export function getProductDetails(pid) {
	return request({
		url: "/productDetail",
		method: "GET",
		params: {
			pid: pid
		}
	})
}

// 进行收藏商品接口
export function like(data) {
	return request({
		url: "/like",
		method: "POST",
		data: data
	})
}

// 查询商品收藏接口
export function findlike(data) {
	return request({
		url: "/findlike",
		method: "GET",
		params: data
	})
}

// 取消(删除)收藏商品接口
export function notlike(data) {
	return request({
		url: "/notlike",
		method: "POST",
		data: data,
	})
}

// 查询用户所有收藏商品接口
export function findAllLike(data) {
	return request({
		url: "/findAllLike",
		method: "GET",
		params: data
	})
}

export default {
	getProductDetails
}
